<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/pages/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<script src="${ctx }/js/jquery.js" type="text/javascript"></script>
<script src="${ctx}/js/page.js" type="text/javascript"></script>
<script language="javascript">
function checkhid(){
	if(confirm("确定隐藏？")){
		alter("已隐藏");
		return true;
	}else{
		return false;
	}
}
function checkshow(){
	if(confirm("确定开启？")){
		alter("已开启");
		return true;
	}else{
		return false;
	}
}
window.onload = function aa(){
	var t = setTimeout("document.getElementById('tips').style.display = 'none'",2000);
}

<%--
function myAlert(showstr)   
{   
    var alertInfo = showstr;  //传递alert框里要显示的信息   
    var timer = 10000;   //设定停留的时间为3000ms，即3秒   
    //在页面中新建一个框架frame，以便在该frame中弹出一个非模态对话框   
    document.body.innerHTML += 
    	"<iframe style='display:none;' width='50' height='40' name='ifrtemp'><body>12347</body></iframe>";   
    //在非模态对话框中弹出一个alert框，并立即关闭该非模态对话框   
   ifrtemp.showModelessDialog("javascript:alert('"+alertInfo+"');window.close();",    
 "",   
            "status:no;resizable:no;help:no;dialogHeight:30px;dialogWidth:40px;");   
    setTimeout("ifrtemp.location.reload();",timer); //停留一段时间后强行关闭alert窗口   
	
}

--%></script>
<style type="text/css">
<!--
body {
	margin-left: 3px;
	margin-top: 0px;
	margin-right: 3px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #e1e2e3;
	font-size: 12px;
}
.STYLE6 {color: #000000; font-size: 12; }
.STYLE10 {color: #000000; font-size: 12px; }
.STYLE19 {
	color: #344b50;
	font-size: 12px;
}
.STYLE21 {
	font-size: 12px;
	color: #3b6375;
}
.STYLE22 {
	font-size: 12px;
	color: #295568;
}
#tips {
	border:2px solid red;
	margin-top:5px;
}
#tips span{
	margin:0 50px;
	padding:20px 0;
	display:block;
}
-->
</style>
</head>

<body>
<s:if test="hasActionMessages()">      
         <s:iterator value="actionMessages">
         
        <div id="tips">
        	<span><s:property escape="false"/></span>
        </div>  
       
         </s:iterator>      
      </s:if> 
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${ctx }/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1"> 学院列表</span></td>
              </tr>
            </table></td>
            <td><div align="right"><span class="STYLE1">
              <a href="academy-admin!add.action" style="text-decoration:none;color:#fff"><img src="${ctx }/images/add.gif" width="10" height="10"  /> 添加   &nbsp; </a>
			  </span><span class="STYLE1"> &nbsp;</span></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
    <form id="mainForm" action="academy-admin.action" method="get">
  		<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}"/>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
      <tr>
        
        <td width="5%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">序号</span></div></td>
        <td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">学院</span></div></td>
		<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">时间</span></div></td>
		<td width="15%" height="20" bgcolor="d3eaef" class="STYLE6"><div align="center"><span class="STYLE10">操作</span></div></td>
      </tr>
      <s:iterator value="page.result"  status="status" >
      <tr>
        <td height="20" bgcolor="#FFFFFF" class="STYLE6"><div align="center"><span class="STYLE19">${status.index+1 +(page.pageNo-1)*page.pageSize}</span></div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center"> ${name} </div></td>
        <td height="20" bgcolor="#FFFFFF" class="STYLE19"><div align="center">${inputTime}</div></td>
        <td height="20" bgcolor="#FFFFFF"><div align="center" class="STYLE21">
        <s:if test="state==1">
          <a href="academy-admin!input.action?id=${id}">编辑 </a>|<a href="academy-admin!onCheck.action?id=${id}&& state=0" onClick="return checkhid()">隐藏</a>
        </s:if>
        <s:else>
         <a href="academy-admin!onCheck.action?id=${id}&& state=1" onClick="return checkshow()">开启</a>
        </s:else>
      </div></td></tr>
	 </s:iterator>
    </table>
    </form>
    </td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td width="33%"><div align="left"><span class="STYLE22">&nbsp;&nbsp;&nbsp;&nbsp;共有<strong>${page.totalCount} </strong> 条记录，当前第<strong> ${page.pageNo}</strong> 页，共 <strong>${page.totalPages}</strong> 页</span></div></td>
        <td width="67%"><table width="312" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr>
            <td width="49"><div align="center"><a href="javascript:jumpPage(1)">首页</a></div></td>
            <td width="49"><div align="center"><s:if test="page.hasPre"><a href="javascript:jumpPage(${page.prePage})">上一页</a></s:if></div></td>
            <td width="49"><div align="center"><s:if test="page.hasNext"><a href="javascript:jumpPage(${page.nextPage})">下一页</a></s:if></div></td>
            <td width="49"><div align="center"><a href="javascript:jumpPage(${page.totalPages})">尾页</a></div></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
--%>